import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-01-22
 * Time: 15:50
 */
public class Test {
    public static void main1(String[] args) {
        Stack<Integer> stack = new Stack<>();
        stack.push(1);
        stack.push(3);
        stack.push(4);
        Integer a = stack.pop();
        System.out.println(a);
        Integer b = stack.peek();
        System.out.println(b);
        System.out.println(stack.size());
        System.out.println(stack.isEmpty());
    }

    public static void main(String[] args) {
        MyStack stack = new MyStack();
        stack.push(1);
        stack.push(3);
        stack.push(4);
        Integer a = stack.pop();
        System.out.println(a);
        Integer b = stack.peek();
        System.out.println(b);
        System.out.println(stack.isEmpty());
    }

}
